<!DOCTYPE html>
<script src="include.js"></script>
<p id="text">Lorem     ipsum dolor sit amet</p>
<script>
    test(() => {
        internals.doubleclick(85, 20);

        const selection = document.getSelection().getRangeAt(0);
        // FIXME: This should output 6-15 instead of 10-15
        println(`Selected range: ${selection.startOffset} - ${selection.endOffset}`);
    });
</script>
